﻿@{
    Layout = "~/Views/Shared/OA/_Layout.cshtml";
    ViewBag.Title = CommonAppService.Current.GetSettingValue("Common_Management", "Name");
    if (ManagerAuthorization.Current.User.Roles.Exists(o => o.Key == "MY_NormalUser") || ManagerAuthorization.Current.User.Roles.Exists(o => o.Key == "MY_ProjectManager"))
    {
        Response.Redirect("/OA/Product");
    }
}
<div id="lay-north">
    <div class="header">
        <div class="logo">
            @if (string.IsNullOrEmpty(CommonAppService.Current.GetSettingValue("Common_Management", "Logo")))
            {
                <h1>
                    @CommonAppService.Current.GetSettingValue("Common_Management", "Name")
                </h1>
            }
            else
            {
                <img alt="Logo" src="@CommonAppService.Current.GetSettingValue("Common_Management", "Logo")" />
            }
        </div>
        @{
            var user = ManagerAuthorization.Current.User;
            @Html.Partial("~/Areas/Common/Views/User/_LoginView.cshtml", user)
        }
    </div>
</div>
<div id="lay-south">
    <div id="lay-west">
        @Html.Action("ReadForAll", "UserModule", new { Area = "Common", ResultType = ActionResultType.Partial })
    </div>
    <div>
        <div id="lay-center">
            <div>
                <div id="tabstrip">
                </div>
            </div>
            <div>
                <div id="iframes">
                </div>
            </div>
        </div>
    </div>
</div>
<div id="popUser">
</div>
<script src="~/App_Content/Script/OA/Index.js?20141023"></script>
<script>
    jQuery(function ()
    {
        if ($.browser.msie && ($.browser.version == 6.0) && !$.support.style)
        {
            window.location = "/App_Content/Html/Browser.htm";
        }
        else if ($.browser.msie && ($.browser.version == 7.0) && !$.support.style)
        {
            window.location = "/App_Content/Html/Browser.htm";
        }
    });
</script>
@if (ManagerHelper.IsAdmin)
{
    <script>
        $(function ()
        {
            activeTab('c068682a-cdb3-4dc7-8a64-7786b1b21288', '运营数据', '/Car/Statistic/');
        });
    </script>
}
else if (ManagerHelper.IsEmployee)
{
    if (ManagerHelper.User.Role == "WX_AdminBKHZ" || ManagerHelper.User.Role == "WX_AdminBKJS" || ManagerHelper.User.Role == "WX_AdminFDHN")
    {
        <script>
            $(function ()
            {
                activeTab('c068682a-cdb3-4dc7-8a64-7786b1b21288', '运营数据', '/Car/Statistic/');
            });
        </script>
    }
    else if (ManagerHelper.User.Role != "WX_Customer" && ManagerHelper.User.Role != "WX_Rescuer" && ManagerHelper.User.Role != "WX_Insurer")
    {
        <script>
            $(function ()
            {
                activeTab('af7d6d28-456d-4242-a2cd-283b68fa36fc', '店铺首页', '/Car/Home');
            });
        </script>
    }
}